package com.example.eureka_client.service;

import com.example.eureka_client.entity.CommentsAgree;
import com.example.eureka_client.entity.CommentsInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 父评论表 服务类
 * </p>
 *
 * @author plj
 * @since 2022-03-24
 */
public interface ICommentsInfoService extends IService<CommentsInfo> {
    boolean addComments(CommentsInfo commentsInfo);
    boolean removeById(String id);
    boolean addAgree(CommentsAgree commentsAgree);
    boolean addNotAgree(CommentsAgree commentsAgree);
    boolean reAgree(CommentsAgree commentsAgree);
    boolean reNotAgree(CommentsAgree commentsAgree);
    List<CommentsInfo> getAnswerComments(String answerId);

    boolean isAgree(CommentsAgree commentsAgree);
}
